package com.example.service;

import com.example.entity.User;

import java.util.List;


public interface UserService {
    // ============查询===============
    User getById(Long id);//根据id查询
    User getByUsername(String username);//根据用户名查询
    User addUser(User user);//添加用户
    User updateUser(User user);//修改用户
    void deleteUser(Long id);//删除用户
}
